import instance from '../../utils/request'

const sysBase = 'sys-authorize/'

// 微信获取验证码登录获取验证码
export function getUserAppAcquireWeChat(data) {
  const config = {
    method: 'post',
    url: `${sysBase}userApp/acquire`,
    params:data
  }
  return instance(config)
}
// 微信获取验证码登录
export function getUserAppLoginWeChat(data) {
  const config = {
    method: 'post',
    url: `${sysBase}userApp/login/C`,
    params:data
  }
  return instance(config)
}
// 微信获取验证码登录 => 账户不存在 => 注册账户
export function getUserAppMobileRegisterCWeChat(data) {
  const config = {
    method: 'post',
    url: `${sysBase}/userApp/mobileRegister/C`,
    params:data
  }
  return instance(config)
}
// 微信获取验证码登录 => 校验验证码
export function getUserAppCheckWeChat(data) {
  const config = {
    method: 'post',
    url: `${sysBase}userApp/check`,
    params:data
  }
  return instance(config)
}